package core.command
{
	import core.event.SocketEventID;
	import core.event.UnoEvent;
	import core.event.ViewEventID;
	
	public class DeleteDeskCommand extends SuperCommand
	{
		public function DeleteDeskCommand()
		{
			socketEvent = SocketEventID.DESK_DELETE;
			viewEvent = ViewEventID.DESK_DELETE;
		}
		
		override public function success(e:UnoEvent):void
		{
			delete db.tableList[e.data.tableID];
		}
	}
}